{% extends "base.html" %}

{% block title %}Aplicar{% endblock %}

{% block content %}

{% if field_list and form_list %}
<form action="confirm/" method="post">{% csrf_token %}
    {% for form in form_list %}
        <p>{{ form.title }}</p>
        {% for field in form.field_set.all %}
            <label> {{ field.label }}:
                <input type="{{ field.get_type_display }}" id="{{ field.id }}" value="{{ field.id }}"> <br />
            </label>
        {% endfor %}
    {% endfor %}
    <input type="submit" value="Aplicar" />
</form>
{% else %}
    <p>No hay formularios seleccionados.</p>
{% endif %}

{% endblock %}